An example of a Pie chart with an interactive key

The interactive key has been re-implemented as of June 2013 and added to more chart types.

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dtnamic.js"></script>
<script src="RGraph.common.key.js"></script>
<script src="RGraph.drawing.rect.js"></script>
<script src="RGraph.pie.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="400" height="400">
    [No canvas support]
</canvas>
This is the code that generates the chart:
<script>
    window.onload = function ()
    {
        var pie = new RGraph.Pie({
            id: 'cvs',
            data: [50,54,53,56,58],
            options: {
                key: ['Jim','Jack','Joseph','Jane', 'Jimmy'],
                keyInteractive: true,
                radius: 150
            }
        }).draw();
    };
</script>